package com.terry.test3;

import java.util.Scanner;

/**
 * @author 小八
 * @date 2023年02月09日16:39
 */
public class Main {
    // [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]]
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String[] split = in.nextLine().replace("],", "|").split("|");
        System.out.println(split);

    }
}
